<?php
class Pageley_Domain_ValueProperty implements Pageley_Domain_Property {
	
	private $value;
	
	public function __construct($value = null) {
		$this->value = $value;
	}
	
	public function setValue($value) {
		$this->value = $value;
	}
	
	public function getValue($load = true) {
		return $this->value;
	}
	
	public function __toString() {
		return "" . $this->value;
	}
	
	public function isInitialized() {
		return true;
	}
	
	public function equals($object) {
		if($object === null) {
			return false;
		}
		if(!($object instanceof Pageley_Domain_ValueProperty)) {
			return false;
		}
		return Pageley_Util_Equals::isEqual($this->value, $object->getValue());
	}
}